items_state = {
    'items': [],
    'max_items': 4,
    'next_id': 1,
}

def add_item(name, price, production_date):
    if len(items_state['items']) >= items_state['max_items']:
        return False, "Maximum number of items reached."
    items_state['items'].append({
        'id': items_state['next_id'],
        'name': name,
        'price': price,
        'production_date': production_date
    })
    items_state['next_id'] += 1
    return True, "Item added successfully."

def delete_item(id_):
    for i, item in enumerate(items_state['items']):
        if item['id'] == id_:
            del items_state['items'][i]
            return True, "Item deleted successfully."
    return False, "Item not found."

def list_items():
    return items_state['items']

def clear():
    items_state['items'] = []
    items_state['next_id'] = 1

if __name__ == "__main__":
    print("Initial items:", list_items())
    print("Add 'baguette':", add_item('baguette', 2.50, '2024-01-15'))
    print("Add 'donut':", add_item('donut', 1.50, '2024-01-15'))
    print("Add 'muffin':", add_item('muffin', 3.00, '2024-01-15'))
    print("Try add 'toast' when full:", add_item('toast', 1.00, '2024-01-15'))
    print("Current items:", list_items())
    print("Delete id 2:", delete_item(2))
    print("After delete:", list_items())
